/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Advance;

/**
 *
 * @author KyleSweeney
 */
public class Test {
    public static void main(String[] args) throws Exception{
        Matrix m = new Matrix(new double[][]{{1,2,3},{4,5,6},{7,8,9}});
        System.out.println(m);
        m.multiply(4);
        System.out.println(m);
        Matrix q=m.multiply(new Matrix(new double[][]{{1,0,0},{0,1,0},{0,0,1}}));
        System.out.println(q);
        m.transpose();
        System.out.println(m);
        m.transpose();
        System.out.println(m);
        m=new Matrix(new double[][]{{1},{1},{1}});
        double[] c=m.returnCol(0);
        System.out.println(m);
        for(int i=0; i<c.length; i++){
            System.out.println(c[i]);
        }
        Matrix z=new Matrix(new double[][]{{1,0,0},{0,1,0},{0,0,1}});
        Matrix p=new Matrix(new double[][]{{1},{1},{1}});
        z.multiplyts(p);
        System.out.println(z);
        System.out.println(p);
    }
}
